<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>学生选课系统</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body bgcolor="#D9DFAA">
  	<table width="400" border=1>
  	<caption>您选课信息如下：</caption>
  	<tr>
  	<th>课程号</th><th>课程名</th><th>开学学期</th><th>学时</th><th>学分</th><th>操作</th>
  	</tr>
  	<s:iterator value="#request.list" id="kc">
  		<tr>
  		<td align="center"><s:property vlaue="#kc.kch"/></td>
  		<td align="center"><s:property value="#kc.kcm"/></td>
  		<td align="center"><s:property vlaue="#kc.kxxq"/></td>
  		<td align="center"><s:property vlaue="#kc.xs"/></td>
  		<td align="center"><s:property vlaue="#kc.xf"/></td>
  		<td align="center">
  			<a href="deleteKc.action?Kcb.kch=<s:property value="#kc.kch"/>" 
  				onClick="if(!confirm('您确定退选该课程吗？'))return false;else return true;">
  					退选</a>
  		</td>
  		</tr>
  	</s:iterator>
  	</table>
  </body>
</html>
